/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-03-31     金鹏       the first version
 */
#ifndef JPCMN_CMN_CONVER_CMN_CONVER_H_
#define JPCMN_CMN_CONVER_CMN_CONVER_H_

#include "JpCMN/DEFINE/DEFINE.h"
#include "JpDEVICE/ESP8266/esp8266.h"
#include <rtthread.h>
#include <rtdef.h>

void hex_to_bytes(char *hex_str, unsigned char *bytes);         /* 十六进制字符串转字节数组*/

int utf8_to_unicode(unsigned char *str, unsigned char *out);    /* UTF8->Unicode*/

int convert_hanzi_numbers(const unsigned char *str);            /* 汉字转数字*/

void change_net();                                              /* 切换网络*/
#endif /* JPCMN_CMN_CONVER_CMN_CONVER_H_ */
